<!-- 轮播组件 -->
<template>
	<swiper class="swiperFrom"  :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000">
		<swiper-item v-for='(item,index) in dataList' :key='index'>
			<view class="swiperFrom-item">
				<image class='swiperFrom-img' :src="item.imgUrl" mode=""></image>
			</view>
		</swiper-item>
	</swiper>
	
</template>

<script>
	export default {
		props: {
			dataList: {
				type: Array,
				default: () => ([])
			}
			// dataList: Array,
		}
	}
</script>

<style scoped>
	.swiperFrom { //!!!微信小程序 不允许已标签名为选择器
		width: 100%;
		height: 400rpx;
	}

	.swiperFrom-img {
		width: 100%;
		height: 400rpx;
	}
</style>